requirejs.config({
  shim: {
    'zepto': {
      exports: '$'
    },
    'underscore': {
      exports: '_'
    },
    'underscore.string': {
      deps: ['underscore'],
      exports: '_.str'
    },
    'zepto.cookie': {
      deps: ['zepto']
    },
    'store': {
      exports: 'store'
    }
  },

  paths: {
    // 'zepto': 'bower_components/zeptojs/dist/zepto.min',
    // 'can': 'bower_components/canjs/can.zepto',
    // 'zepto': 'scripts/vendor/zepto.min',
    'zepto': 'scripts/vendor/zepto',
    'can': 'scripts/vendor/can.zepto',
    'store': 'bower_components/store/store',
    'underscore': 'bower_components/underscore/underscore',
    'md5': 'bower_components/blueimp-md5/js/md5.min',
    'underscore.string': 'bower_components/underscore.string/dist/underscore.string',
    "moment": "bower_components/momentjs/min/moment.min",
    'fastclick': 'bower_components/fastclick/lib/fastclick',
    "text": "../bower_components/text/text",
    'zepto.cookie': 'scripts/vendor/zepto.cookie',
    "jweixin": "scripts/vendor/jweixin-1.0.0",
    "lazyload": "scripts/vendor/lazyload",

    'sf.b2c.mall.business.config': 'scripts/sf.b2c.mall.business.config',
    'sf.b2c.mall.api.security.type': 'scripts/framework/sf.b2c.mall.api.security.type',
    'sf.b2c.mall.framework.adapter': 'scripts/framework/sf.b2c.mall.framework.adapter',
    'sf.b2c.mall.framework.comm': 'scripts/framework/sf.b2c.mall.framework.comm',
    'sf.b2c.mall.framework.https': 'scripts/framework/sf.b2c.mall.framework.https',
    'sf.b2c.mall.framework.multiple.comm': 'scripts/framework/sf.b2c.mall.framework.multiple.comm',
    'sf.b2c.mall.framework.view.controller': 'scripts/framework/sf.b2c.mall.framework.view.controller',
    'sf.b2c.mall.util.utils': 'scripts/util/sf.b2c.mall.util.utils',

    'sf.b2c.mall.api.user.reqLoginAuth': 'scripts/api/sf.b2c.mall.api.user.reqLoginAuth',
    'sf.b2c.mall.api.minicart.getTotalCount': 'scripts/api/sf.b2c.mall.api.minicart.getTotalCount',
    'sf.b2c.mall.api.user.getWeChatJsApiSig': 'scripts/api/sf.b2c.mall.api.user.getWeChatJsApiSig',
    'sf.b2c.mall.api.product.getPrices': 'scripts/api/sf.b2c.mall.api.product.getPrices',
    'sf.b2c.mall.api.shopcart.addItemsToCart': 'scripts/api/sf.b2c.mall.api.shopcart.addItemsToCart',
    'sf.b2c.mall.api.user.findbackCsrf': 'scripts/api/sf.b2c.mall.api.user.findbackCsrf',
    'youa.api.getPrices': 'scripts/api/youa.api.getPrices',

    'sf.b2c.mall.adapter.regions': 'scripts/adapter/sf.b2c.mall.adapter.regions',

    "sf.b2c.mall.widget.message": "scripts/widget/sf.b2c.mall.widget.message",
    "sf.b2c.mall.widget.loading": "scripts/widget/sf.b2c.mall.widget.loading",
    "sf.b2c.mall.widget.login": "scripts/widget/sf.b2c.mall.widget.login",
    "sf.b2c.mall.widget.cartnumber": "scripts/widget/sf.b2c.mall.widget.cartnumber",
    "sf.b2c.mall.widget.region": "scripts/widget/sf.b2c.mall.widget.region",
    "sf.b2c.mall.widget.bubble": "scripts/widget/sf.b2c.mall.widget.bubble",
    "sf.b2c.mall.module.price": "scripts/widget/sf.b2c.mall.module.price",
    "sf.b2c.mall.weixin.weixinshare": "scripts/widget/sf.b2c.mall.weixin.weixinshare",
    "sf.b2c.mall.module.imagelazyload": "scripts/widget/sf.b2c.mall.module.imagelazyload",
    "youa.module.price": "scripts/widget/youa.module.price",
    "youa.module.price.supplement": "scripts/widget/youa.module.price.supplement",
    "youa.module.app.adjust": "scripts/widget/youa.module.app.adjust",
    'youa.module.sn.share': "scripts/widget/youa.module.sn.share",

    "sf.b2c.mall.component.nav": "scripts/component/sf.b2c.mall.component.nav",

    "sf.hybrid": "scripts/util/sf.hybrid",
    "sf.bridge": "scripts/util/sf.bridge",
    "sf.weixin": "scripts/util/sf.weixin",
    "sf.helpers": "scripts/util/sf.helpers",
    "sf.util": "scripts/util/sf.util.fn",
    "sf.env.switcher": "scripts/util/sf.env.switcher",

    // "json_regions": "json/sf.b2c.mall.regions.json",

    "template_widget_loading": "templates/widget/sf.b2c.mall.widget.loading.mustache",
    "template_widget_message": "templates/widget/sf.b2c.mall.widget.message.mustache",
    "template_component_nav": "templates/component/sf.b2c.mall.component.nav.mustache",
    // "template_widget_region": "templates/widget/sf.b2c.mall.widget.region.mustache"
  }
})